Search results

Types

Classes
Interfaces
Enums
Functions
Type aliases
Constants

Members

Properties
Methods
Getters
Setters
Enum members
Show privates

Other

In this module only

Interface Player

extends NodeJS.EventEmitterexternal NodeJS.EventEmitter

Defined in Player.ts

Properties

on: (
event: "trackStart",
listener: (
channel: TextChannel | GuildTextBasedChannel,
song: Songinterface Songutils/Song
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when a track starts.

· listener - undefined
· listener - undefined
on: (
event: "trackFinished",
listener: (
channel: TextChannel | GuildTextBasedChannel,
song: Songinterface Songutils/Song
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when a track is finished.

· listener - undefined
· listener - undefined
on: (
event: "pause",
listener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when the music is turned off

· listener - undefined
· listener - undefined
on: (
event: "resume",
listener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when the music is turned on

· listener - undefined
· listener - undefined
on: (
event: "stop",
listener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when the music is stopped

· listener - undefined
· listener - undefined
on: (
event: "connected",
listener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel,
voiceChannel: VoiceBasedChannel | VoiceChannel
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when the client is connected to a voice channel. This event will not be emitted is you used the assignVoiceConnection() method.

· listener - undefined
· listener - undefined
· listener - undefined
on: (
event: "disconnected",
listener: (
guild: Guild,
channel: TextChannel | GuildTextBasedChannel,
voiceChannel: VoiceBasedChannel | VoiceChannel
) => void | Promiseexternal Promise<void> | any
) => Playerinterface Playerstructures/Player

Emitted when the client is disconnected to a voice channel.

· listener - undefined
· listener - undefined
· listener - undefined
on: (
event: "error",
listener: (
error: AudioPlayerError | Errorexternal Error | string | any
) => void | Awaited | any
) => Playerinterface Playerstructures/Player

Emitted when an error occured

· listener - undefined
on: (
event: "debug",
listener: (msg: string) => void | Awaited | any
) => Playerinterface Playerstructures/Player

Emitted when a debug information is communicated by Discord.Js/voice

· listener - undefined